#include "stdafx.h"
#include "NaviPathStatu.h"
#include "CStaticText.h"
#include "CGraphicMgr.h"
CNaviPathStatu::CNaviPathStatu(WCHAR* name):IStatu(name)
{
}

CNaviPathStatu::~CNaviPathStatu(void)
{
}
bool CNaviPathStatu::EnterStatu()
{
	CMyReg   mReg;
	TCHAR szPath[260]={0};
	if (mReg.Open(HKEY_CURRENT_USER, TEXT("OEM\\APP")))
	swprintf(szPath,L"%s",mReg.ValueSZ(L"GpsPath"));
	CStaticText* p = (CStaticText*)GRAPHICMGR.GetElement(L"txtnavipath");
	if (p)
		p->setvalue(szPath);
	return true;

}